﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AttributeSample
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
    class AttriUsage : Attribute
    {
        public string _title { get; set; }
        public int _num { get; set; }
        // 有两个必选参数
        public AttriUsage(string title, int num)
        {
            _title = title;
            _num = num;
        }
        public string title => _title;

        public int num => _num;
        public string Issues { get; set; }

    }
}
